﻿#include "errorevent.h"

QEvent::Type ErrorEvent::mEventType = QEvent::None;

ErrorEvent::ErrorEvent(int errorCode) : QEvent(eventType())
{
   mErrorCode = errorCode;
}

ErrorEvent::~ErrorEvent()
{

}

QEvent::Type ErrorEvent::eventType()
{
   if (mEventType == QEvent::None) {
       mEventType = (QEvent::Type)QEvent::registerEventType();
   }
   return mEventType;
}

int ErrorEvent::getErrorCode(void)
{
   return mErrorCode;
}

